package org.yaac.client.service;

import org.yaac.shared.egql.Request;
import org.yaac.shared.egql.Response;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * @author Max Zhu (thebbsky@gmail.com)
 *
 */
@RemoteServiceRelativePath("GWT.rpc")
public interface EGQLService extends RemoteService {
	
	/**
	 * @param cmd
	 * @return
	 * 
	 * one command can contain multiple statements
	 * a statement can be select / insert / update / delete
	 * 
	 */
	Response execute(Request cmd);
	
}
